﻿<Grid 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:App" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="296" d:DesignWidth="468">
    <Grid.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Reflect">
            <LinearGradientBrush.RelativeTransform>
                <TransformGroup>
                    <ScaleTransform CenterY="0.5" CenterX="0.5" ScaleY="1.05" ScaleX="2.65"/>
                    <SkewTransform CenterY="0.5" CenterX="0.5" AngleY="23" AngleX="-6"/>
                    <RotateTransform CenterY="0.5" CenterX="0.5" Angle="-14.036"/>
                    <TranslateTransform/>
                </TransformGroup>
            </LinearGradientBrush.RelativeTransform>
            <GradientStop Color="#FF622DA9" Offset="1"/>
            <GradientStop Color="#EE96A5E5" Offset="0.142"/>
            <GradientStop Color="#FF622DA9"/>
            <GradientStop Color="#EE96A5E5" Offset="0.866"/>
        </LinearGradientBrush>
    </Grid.Background>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <ListView ItemsSource="{Binding Books}" >
        <ListView.View>
            <GridView>
                <GridViewColumn Width="120" Header="Title" DisplayMemberBinding="{Binding Title}"/>
                <GridViewColumn Width="120" Header="Author"  DisplayMemberBinding="{Binding Author}" />
            </GridView>
        </ListView.View>
    </ListView>
    <Button x:Name="btnLoad" Grid.Row="1" Command="{Binding LoadCommand}" Content="Load Data" Width="80" Height="25" Margin="0,10,0,0" HorizontalAlignment="Left"/>
</Grid>

